import {
    createSlice,// 负责创建slice(片区，模块）
    configureStore// 创建仓库（store）
} from "@reduxjs/toolkit";
const goodsSlice = createSlice({
    name:"goods",
    initialState:{
        num:1,
        goodsList:[]
    }
});
const carSlice = createSlice({
    name:"car",
    initialState:{
        carList:[]
    },
});
const store = configureStore({
    reducer:{
        goods:goodsSlice.reducer,
        car:carSlice.reducer
    }
});
console.log(store.getState())

